/* (C) Collabora Productivity 2023, All Rights Reserved, (version 23.05-15) */

/*
Any of these can be used either by omitting the prefix (it will default to --co)
or by setting a different prefix by passing it and 2nd argument
*/
/**
	* Use this mixin to DECLARE a set of CSS Custom Properties in the :root element.
	* The variables in $css_variables will be properly prefixed.
	* The use of this mixin is encoraged to keep a good scalability.
	* @include set-cssvars((
	*  primary-color: #504999,
	*  secondary-color: #38257a,
	* ));
	* result in:
	* root {
	*  --co-primary-color: #504999;
	*  --co-secondary-color: #38257a;
	* }
*/
/**
	* ASSIGN a css variable value with prefix
	* .selector {
	*   color: get-cssvar(primary-color);
	* }
	*
	* result in:
	* .selector {
	*    color: var(--co-primary-color);
	* }
 */
/**
	* ASSIGN a css variable value with prefix
*.btn-primary {
*   height: cssvar(button-height);
*   &--big {
*     // rewrite height for btn-primary--big
*     @include update-cssvar(button-height, 56px);
*  }
*}
 */
:root {
  --co-color-main-text: #212121;
  --co-color-background-hover: #f5f5f5;
  --co-color-background-dark: #ededed;
  --co-body-bg: #ffffff;
  --co-text-accent: #38257a;
  --co-primary-element: #4c566a;
  --co-primary-element-light: #706aab;
  --co-primary-text: #ffffff;
  --co-border-radius: 3px;
  --co-color-border-dark: #b0b4bd;
  --co-color-text-lighter: #636363;
  --co-color-warning: #eca700;
  --co-color-main-background-translucent: transparent;
}

/*icons*/
.w2ui-icon.closemobile {
  background: url("images/lc_closedocmobile_branding.svg") no-repeat center !important;
}

#toolbar-up .w2ui-toolbar {
  padding-top: 5px !important;
}

.w2ui-toolbar table.w2ui-button .w2ui-tb-image {
  margin: 1px;
}

#toolbar-up > div > table > tbody > tr > td > div > .checked .w2ui-tb-image {
  background-size: 15px;
}

.logo {
  background-size: 100px;
  max-width: 24px;
  max-height: 31px;
  top: 0;
}

#toolbar-logo {
  width: 0px !important;
}

#toolbar-up .w2ui-toolbar {
  padding-top: 5px !important;
}

#toolbar-hamburger.menuwizard-opened {
  background-color: var(--co-color-background-dark) !important;
}

.w2ui-scroll-left, .w2ui-scroll-right {
  box-shadow: 4px 0 13px 2px var(--co-primary-element), -6px 0 6px 6px var(--co-primary-element) !important;
}

/*avoid scroll indicators to be above other items*/
.w2ui-toolbar table.w2ui-button .w2ui-tb-image {
  margin: 5px 1px 3px 1px !important;
}

#PermissionMode.status-readonly-mode {
  background-color: transparent;
  color: var(--co-color-text-lighter);
}

#mobile-edit-button {
  background-color: var(--co-primary-element) !important;
}

#toolbar-down table.w2ui-button.checked {
  border: 1px solid var(--co-primary-text) !important;
  background: linear-gradient(to right, #fff 20%, #fff0 20%) no-repeat, linear-gradient(to left, #fff 20%, #fff0 20%) no-repeat, linear-gradient(transparent 94%, var(--co-primary-element) 94%);
  background-color: transparent !important;
}

.spreadsheet-tab {
  padding-bottom: 4px !important;
  padding-top: 5px !important;
}

#mobile-wizard button,
#mobile-wizard #FontworkSameLetterHeights {
  color: var(--co-primary-text);
  background-color: var(--co-primary-element);
  border: 1px solid var(--co-primary-element);
}

#mobile-wizard-titlebar {
  color: var(--co-color-text-lighter);
}

.ui-tab.selected.mobile-wizard {
  color: var(--co-primary-element);
  border-bottom: 1px solid var(--co-primary-element);
}

.ui-tab.mobile-wizard {
  color: var(--co-color-text-lighter);
}

div#mobile-wizard-content .spinfieldcontainer {
  border: 1px solid var(--co-color-border-dark);
  border-radius: var(--co-border-radius);
}

.spinfieldcontrols {
  background-color: var(--co-color-background-dark);
  border-left: 1px solid var(--co-color-border-dark);
}

.plus {
  border-left: 1px solid var(--co-color-border-dark);
  color: var(--co-color-text-lighter) !important;
}

.minus {
  border-right: 1px solid var(--co-color-border-dark);
  color: var(--co-color-text-lighter) !important;
}

.spinfieldunit {
  color: var(--co-color-text-lighter) !important;
}

.colors-container-selected-basic-color {
  box-shadow: 0 2px 3px -2px var(--co-primary-element);
  border-radius: var(--co-border-radius);
}

.color-sample-small {
  border-color: var(--co-body-bg);
}

.color-sample-big {
  box-shadow: 0px 0px 0px 1px var(--co-color-background-dark), 1px 1px 0 3px var(--co-body-bg);
}

.menu-entry-icon {
  background: var(--co-color-main-background-translucent);
}

#mobile-wizard-content #commands.selected {
  border-color: var(--co-primary-element);
}

#mobile-wizard .cool-annotation-reply-count {
  margin-inline-end: 32px !important;
}

#lokit-version ~ p {
  margin: 0;
}

#about-dialog-header {
  flex-flow: column;
  align-items: center;
}

#about-dialog-logos {
  flex-basis: 62px;
  max-width: 168px;
}

#about-dialog-logos * {
  background-position: left top;
}

#product-logo {
  flex-grow: 0.8;
  background-position: center top !important;
}

#product-name {
  justify-content: center !important;
}

#lokit-logo {
  flex-grow: 1;
  background-position: center 6px !important;
}
